package com.woniuxy.service.impl;

import com.woniuxy.entity.Emp;
import com.woniuxy.mapper.EmpMapper;
import com.woniuxy.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class EmpServiceImpl implements EmpService {
    @Autowired
    private EmpMapper empMapper;

    @Override
    public int save(Emp emp) {
        return empMapper.insert(emp);
    }
}
